import { modelAdd, modelRemove } from './modelOpera.js';

let allObject = [];

class JZJGFrameAdd {
  constructor(scene) {
    const modelData = [
      { url: './model/计轴机柜柜体.fbx', num: 1, x: 0, y: 0, z: 0 },
      { url: './model/计轴机柜内部.fbx', num: 1, x: -3.5, y: -11.5, z: 2.5 },
      { url: './model/计轴机柜标签.fbx', num: 1, x: 8.2, y: 87.5, z: 2.5 },
      { url: './model/计轴机柜门边.fbx', num: 1, x: 5.5, y: -8, z: 1.8 },
      { url: './model/计轴机柜玻璃门.fbx', num: 1, x: 5.5, y: -8, z: 1.8 },
    ];
    new modelAdd(modelData, (group) => {
      group.position.set(-276.5, -25.8, 230.5);
      scene.add(group);
      allObject = group;
    });
  }
}
class JZJGFrameRemove {
  constructor(scene) {
    new modelRemove(scene, allObject);
  }
}
export { JZJGFrameAdd, JZJGFrameRemove };